 package com.om.common;
 
 import com.om.base.BaseConnectionManage;
import com.om.base.DBConnectionManager;

 import java.sql.Connection;
import java.sql.DriverManager;
 
 public class TaskConnectionManage extends BaseConnectionManage
 {
   public static Connection GetConnection(){
	   return DBConnectionManager.getInstance().getConnection("read");
   }
   
   public static Connection GetWriteConnection(){
	   return DBConnectionManager.getInstance().getConnection("write");
   }
   
 
   protected Connection getConnection(){
     return  DBConnectionManager.getInstance().getConnection("read");
   }
   
   public static Connection GetConnection(String poolName){
	   return DBConnectionManager.getInstance().getConnection(poolName);
   } 
   
   public static void   FreeOpenedConnection(Connection con) {
	   DBConnectionManager.getInstance().freeConnection( con);
   }


	protected   void freeConnection(Connection con)  {
		DBConnectionManager.getInstance().freeConnection( con);
	}

	@Override
	protected Connection getConnection(String poolName) {
		return  DBConnectionManager.getInstance().getConnection(poolName);
	}

	@Override
	protected Connection getWriteConnection() {
		 return DBConnectionManager.getInstance().getConnection("write");
	}
 }

/* Location:           D:\temp\omtask\WEB-INF\classes\
 * Qualified Name:     com.om.common.TaskConnectionManage
 * JD-Core Version:    0.5.3
 */